package com.ftg.learn.day14;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 布衣
 */
public class First {

    public static void main(String[] args) {
        Date d = new Date();
        System.out.println(d);
        System.out.println(d.toString());
        //jdk1.8
        LocalDate d1 = LocalDate.now();
        System.out.println(d1);
        LocalDateTime d2 = LocalDateTime.now();
        System.out.println(d2);
    }

//# 读锁  lock tables dept read;
//# 写锁
//# lock in share mode;
//# for update;
//# 表锁
//# 共享锁  排它锁

}
